﻿@using Pay.Model.Dto
@using Pay.Common
@using Webdiyer.WebControls.Mvc
@using Pay.Model.Enums
@model PagedList<StatisticModel>
<table class="table table-hover">
    <thead>
        <tr>
            <th>ID</th>
            <th>商户ID</th>
            <th>总金额</th>
            <th>总实际支付金额</th>
            <th>总手续费</th>
        </tr>
    </thead>
    <tbody>
        <tr>
            @{ int i = 0;}
            @foreach (var item in Model)
            {

            <tr>
                @*<td>
                        <div class="layui-unselect layui-form-checkbox" lay-skin="primary" data-id='2'><i class="layui-icon">&#xe605;</i></div>
                    </td>*@
                <td>@(Model.StartItemIndex + i++)</td>
                <td>@item.Id</td>
                <td>@item.TotalAmount.ToString("F2")</td>
                <td>@item.TotalPay.ToString("F2")</td>
                <td>@item.TotalFee.ToString("F2")</td>
            </tr>
            }
        </tbody>
    </table>




    <div class="text-center">
        @*<div style="float:left;width:50%">当前 @Model.CurrentPageIndex 页，共 @Model.TotalPageCount 页, 共 @Model.TotalItemCount items 条</div>*@
        <span> 当前 @Model.CurrentPageIndex 页，共 @Model.TotalPageCount 页, 共 @Model.TotalItemCount  条</span>
        <nav>
            @Ajax.Pager(Model, new PagerOptions { PageIndexParameterName = "id", ContainerTagName = "ul", CssClass = "pagination", CurrentPagerItemTemplate = "<li class=\"active\"><a  href=\"javascript:;\">{0}</a></li>", DisabledPagerItemTemplate = "<li class=\"disabled\"><a>{0}</a></li>", PagerItemTemplate = "<li>{0}</li>" }, new MvcAjaxOptions { UpdateTargetId = "articles", HttpMethod = "Post", DataFormId = "searchForm" })
        </nav>
    </div>


